package com.ztesoft.huangfu.learning.springboot.springboottest.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/role")
public class TestController2 {


    @GetMapping("/hello/{id}")
    public String helloWorld(@PathVariable("id") String id, String hahah) {
        return "hello world" + id + ";" + hahah + ";from 8080";
    }
    @GetMapping("/hello1/{id}")
    public String helloWorld1(@PathVariable("id") String id, String hahah) {
        return "hello world" + id + ";" + hahah + ";from 8080";
    }
}
